import java.util.*;
import org.rythmengine.template.TemplateBase;
import java.io.*;

public class login_html__R_T_C__ extends org.rythmengine.template.TagBase {

	public java.lang.String __getName() {
		return "login.html";
	}


	protected java.lang.String __renderArgName(int __pos) {
		int __p = 0;
		throw new ArrayIndexOutOfBoundsException();
	}

	protected java.util.Map<java.lang.String, java.lang.Class> __renderArgTypeMap() {
		java.util.Map<java.lang.String, java.lang.Class> __m = new java.util.HashMap<String, Class>();
		return __m;
	}

	@SuppressWarnings("unchecked")
	public TemplateBase __setRenderArgs(java.util.Map<java.lang.String, java.lang.Object> __args) {
		if (null == __args) throw new NullPointerException();
		if (__args.isEmpty()) return this;
		super.__setRenderArgs(__args);
		return this;
	}

	@SuppressWarnings("unchecked") @Override public TemplateBase __setRenderArg(java.lang.String __name, java.lang.Object __arg) {
		super.__setRenderArg(__name, __arg);
		return this;
	}

	@SuppressWarnings("unchecked") public TemplateBase __setRenderArg(int __pos, java.lang.Object __arg) {
		int __p = 0;
		if(0 == __pos) __setRenderArg("arg", __arg);
		return this;
	}





	public org.rythmengine.utils.TextBuilder build(){
		buffer().ensureCapacity(1752);
p("<!doctype html>\n<html lang=\"zn\">\n<head>\n<meta charset=\"UTF-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>活动助手</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\""); //line: 8
{ //line: 8
	org.rythmengine.template.ITag.__ParameterList _pl = null;  //line: 8
	_pl = new org.rythmengine.template.ITag.__ParameterList(); //line: 8
	_pl.add("","/static/css/styles.css"); //line: 8
		__invokeTag(8, "res", _pl, false); //line: 8
} //line: 8
p("\">\n</head>\n<body>\n<div class=\"wrapper\" style=\"height:100%;\">\n<div class=\"container\">\n<h1 style=\"color:white;\">活动助手</h1>\n<form method=\"post\" id=\"loginform\" name=\"loginform\" class=\"form js-partial-form\" action=\"?\">\n<input type=\"text\" placeholder=\"账号\" name=\"username\" value=\"fork\">\n<input type=\"password\" placeholder=\"密码\" name=\"password\" value=\"123\">\n<button class=\"js-json-post\" type=\"submit\" href=\"regeist.json\" result=\"location.href='index.html'\" id=\"regist-button\">注册</button>\n<button class=\"js-json-post\" type=\"submit\" href=\"login.json\" result=\"location.href='index.html'\" id=\"login-button\">登录</button>\n</form>\n</div>\n<!--背景动态效果-->\n<ul class=\"bg-bubbles\">\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n</ul><!--./背景动态效果-->\n</div>\n"); //line: 36
p('<');p("script type=\"text/javascript\" src=\""); //line: 1
{ //line: 1
	org.rythmengine.template.ITag.__ParameterList _pl = null;  //line: 1
	_pl = new org.rythmengine.template.ITag.__ParameterList(); //line: 1
	_pl.add("","/static/js/jquery-1.10.2.min.js"); //line: 1
		__invokeTag(1, "res", _pl, false); //line: 1
} //line: 1
p("\">"); //line: 1
;__ctx.pushCodeType((org.rythmengine.extension.ICodeType)org.rythmengine.extension.ICodeType.DefImpl.JS.clone()); //line: 36
p("</script>");__ctx.popCodeType(); //line: 36
p("\n</body>\n"); //line: 38
p("<script>");__ctx.pushCodeType((org.rythmengine.extension.ICodeType)org.rythmengine.extension.ICodeType.DefImpl.JS.clone()); //line: 38
p("\n//使用ajax提交a标签所在部分的表单\n$(\".js-json-post\").click(function () {\nvar that=this;\nvar url=$(this).attr(\"href\");\nvar data=$(\"input,:checkbox:checked\",$(this).closest(\".js-partial-form\"));\n$.post(url,data,function(r){\nif(r.result){\nif(r.data.code!=0){\nalert(r.data.msg);\n}else{\neval($(that).attr(\"result\")||\"{}\");\n}\n}else{\nalert(r.data);\n}\n});\nreturn false;\n});\n"); //line: 57
p("</script>");__ctx.popCodeType(); //line: 57
p("\n</html>"); //line: 58

		return this;
	}

}
